<?php

/**
 * @file
 * Test suite for Event class.
 * 
 * Copyright 2011 by UNHM CIS605 project Donate team.
 * This program is part of BBBS and YWCA Donation management system.
 * Donate is free software. It comes with absolutely no warranty.
 * You can redistribute it and/or modify it under the terms of the GNU
 * General Public License as published by the Free Software Foundation
 * (see <http://www.gnu.org/licenses/ for more information).
 * 
 * @version March 7, 2011
 * @author Laura Cassella
 */
/**
 * Include the php file that is being tested.
 */
include_once(dirname(_FILE_) . '/../database/Event.php');
/**
 * Tests the Event class.
 */
class testEvent extends UnitTestCase {
    function testEventModule() {
        $myEvent = new Event("1", "2", "2010-11-15", "400 Commercial St.", "Manchester", "NH", "03101-1113");  			
        $this->assertTrue($myEvent->get_eventID() == '1');
        $this->assertTrue($myEvent->get_eventTypeID() == '2');
        $this->assertTrue($myEvent->get_eventDate() == "2010-11-15");
        $this->assertTrue($myEvent->get_street() == "400 Commercial St.");
        $this->assertTrue($myEvent->get_city() == "Manchester");
        $this->assertTrue($myEvent->get_stateName() == "NH");
        $this->assertTrue($myEvent->get_zip() == "03101-1113");

        echo("testEvent complete");
    }

}

?>
